import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import local_remove from '@dfeidao/atom-web/local/remove';
import local_set from '@dfeidao/atom-web/local/set';
import render from '@dfeidao/atom-web/render/render';
import P01 from './P01';
// 接收选择关联页返回的选中数据
export default async function a004(fd: IFeidaoAiBrowserComponent, args: { pub_package: { name: string, file_url: string } }) {
	local_set(fd, 'pub_package', args.pub_package);
	fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="package_name"]').value = args.pub_package.name;
	fd.data.node.querySelector<HTMLSpanElement>('[data-feidao-id="package_path"]').innerText = args.pub_package.file_url;
	local_remove(fd, "data");
	render(fd, [], P01, 'P01', 'inner');
}
